/*
 * PointXML.java
 *
 * Created on 18 sierpień 2007, 16:30
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package pl.krakow.ae.knp.wikiboard.xml;

import java.io.FileOutputStream;
import java.io.IOException;
import nu.xom.*;

/**
 *
 * @author Michał
 */
public class PointXML {
    
    private String x,y;
    
    /**
     * Creates a new instance of PointXML
     */
    public PointXML(String x, String y) {
        this.x=x;
        this.y=y;
    }
    
    public Element getXML() {
        Element point = new Element("point");
        Element eX = new Element("x");
        Element eY = new Element("y");
        eX.appendChild(x);
        eY.appendChild(y);
        point.appendChild(eX);
        point.appendChild(eY);
        return point;
    }    
}
